home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / throw < prev    next >
Text File  |  2001-04-06  |  501b  |  17 lines

  1. SYNOPSIS
  2.         void throw(mixed arg)
  3.  
  4. DESCRIPTION
  5.         Abort execution. If the current program execution was
  6.         initiated by catch(), that catch expression will
  7.         return arg as error code.
  8.         Calling throw() without previous catch() does not make sense
  9.         and will result in an ``throw without catch'' error.
  10.  
  11. EXAMPLE
  12.         catch(throw("aborting execution"));
  13.         This will just print the string "aborting execution".
  14.         
  15. SEE ALSO
  16.         catch(E), raise_error(E)
  17.